package cn.springboot.pioneermall.robotChat.domain;


import cn.springboot.pioneermall.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 客服问答聊天记录对象 hs_chat_message
 *
 * @author ljxl
 * @date 2023-10-22
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("聊天记录")
public class HsChatMessage
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    private Integer id;

    /** 发送者主键 */
    @ApiModelProperty("发送者主键")
    @Excel(name = "发送者主键")
    private Long fromId;

    /** 接收者主键 */
    @ApiModelProperty("接收者主键")
    @Excel(name = "接收者主键")
    private Long toId;

    /** 发送内容 */
    @ApiModelProperty("发送内容")
    @Excel(name = "发送内容")
    private String sendContent;

    /** 发送时间 */
    @ApiModelProperty(value="发送时间",example = "2021-09-10 10:20:40")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** 发送人姓名 */
    @ApiModelProperty("发送人姓名")
    @Excel(name = "发送人姓名")
    private String fromUserName;

    /** 接收人姓名 */
    @ApiModelProperty("接收人姓名")
    @Excel(name = "接收人姓名")
    private String toUserName;

}
